package com.mjh.comm;

public class Constant {

	//系统的web路径,在容器启动时设置,ContextListener.java
	public static String SERVLET_CONTEXT;
	
	//Action操作结果
	public static final int FAIL = 0;
	public static final int SUCCESS = 1;
	public static final String OPERATE_DESC[] = {"失败", "成功"};
	
	//评论是否回复标志
	public static final int NOT_REPLY = 0;
	public static final int IS_REPLY = 1;
	public static final String REPLY_DESC[] = {"否", "是"};
	
	//文章状态
	public static final int ARTICLE_STATE_NORMAL = 0;
	public static final int ARTICLE_STATE_HIDDEN = 1;
	public static final String ARTICLE_STATE_DESC[] = { "正常", "隐藏"};
	
	//文章是否被Lucene索引
	public static final int ARTICLE_NOT_INDEX = 0;
	public static final int ARTICLE_IS_INDEX = 1;
	public static final int ARTICLE_INDEX_OLD = 2;
	public static final String ARTICLE_INDEX_DESC[] = {"未索引", "已索引", "旧索引"};
	
	
	//保存登录用户信息的key
	public static final String LOGIN_KEY = "loginUser";
	
	//用户状态
	public static final int USER_NORMAL = 0;
	public static final int USER_LOCK = 1;
	public static final String USER_DESC[] = {"锁定", "正常",};
	
}
